﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第十九题
//BC21 浮点数的个位数字
//https://www.nowcoder.com/practice/ffa94d27c6534396aef38813535c279f?tpId=107&tqId=33302&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    double num = 0.0;
    scanf("%lf", &num);
    printf("%d", ((int)num) % 10);
    return 0;
}